package com.antt.cn.test3;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;

import com.antt.cn.test3.uis.MyReaderActivity;

import butterknife.ButterKnife;
import butterknife.OnClick;

public class MainActivity extends AppCompatActivity implements BaseInterface {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.ac_main);

        ButterKnife.bind(this);
        initView();
        initData();
        initListener();
    }

    @Override
    public void initView() {

    }

    @Override
    public void initData() {

    }

    @Override
    public void initListener() {

    }

    @OnClick(R.id.ac_main_obt)
    public void obtClick(View view) {
        goTo(MyReaderActivity.class);
    }

    @OnClick(R.id.ac_main_obt_test01)
    public void test01() {
        goTo(Test01.class);
    }


    public void goTo(Class<? extends AppCompatActivity> targetActivity) {
        if (null == targetActivity)
            return;
        startActivity(new Intent(this, targetActivity));
    }
}
